package com.starbaba.base.service.impl;

import com.base.common.exception.AppException;
import com.base.common.log.LogService;
import com.starbaba.base.dao.LoanManagerBaseDao;
import com.starbaba.base.service.CommUserService;
import com.starbaba.loanAccountInput.model.CommUserModel;

public class CommUserServiceImpl extends LoanManagerBaseDao implements CommUserService{
	
	@Override
	public CommUserModel getCommUserById(Long id) {
		
		String sql = "SELECT mobnum FROM comm_user WHERE id = ?";
		
		CommUserModel model = new CommUserModel();
		
		try {
			
			model = getDao().get(sql, CommUserModel.class, id);
			
		} catch (AppException e) {
			LogService.error(e);
		}
		
		return model;
	}

}
